/*
 * @Author: nengwu 409791297@qq.com
 * @Date: 2020-06-29 16:57:56
 * @LastEditors: nengwu 409791297@qq.com
 * @LastEditTime: 2020-06-29 17:10:11
 * @description:
 */

import React from 'react'
import { View, Text, TouchableHighlight } from 'react-native'
import styles from './styles'

const ListItem = props => {
  return (
    <TouchableHighlight onPress={props.onPress}>
      <View style={styles.wrap}>
        <View style={styles.itemLeft}>
          <Text style={styles.title}>{props.title}</Text>
        </View>
        <View style={styles.itemRight}>{props.rightIcon}</View>
      </View>
    </TouchableHighlight>
  )
}

export default ListItem
